﻿@{
    Layout = null;
}
@using Webdiyer.WebControls.Mvc
@model PagedList<Models.BlogInfo>
<!DOCTYPE html>
<html>
<head>
    <title>Index</title>
    <link rel="Stylesheet" type="text/css" href="http://common.cnblogs.com/css/reset.css" />
    <link rel="Stylesheet" type="text/css" href="http://www.cnblogs.com/css/aggsite.css" />
    <script src="http://common.cnblogs.com/script/jquery.js" type="text/javascript"></script>
    <script src="http://common.cnblogs.com/script/json2.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://www.cnblogs.com/script/site.src.js">
    <script type="text/javascript" src="@Url.Content("http://malsup.github.com/jquery.blockUI.js")"></script>
    <script type="text/javascript">
        function AjaxStart() {
            $.blockUI({ message: '<h2><img     src="<%=Url.Content("~/Images/loading.gif") %>" width="16" height="16"/>正在获取数据，请稍候...</h2>' });
        }
        function AjaxStop() { $.unblockUI(); }
        function cateShow(index) {
            if (document.getElementById("cate_content_block_" + index)) {
                document.getElementById("cate_content_block_" + index).style.display = 'block';
            }
            var vall = "cate_item_" + index;
            document.getElementById("cate_item_" + index).className = 'cate_item_hover';
        }
        function cateHidden(index) {
            if (document.getElementById("cate_content_block_" + index)) {
                document.getElementById("cate_content_block_" + index).style.display = 'none';
            }
            var vall = "cate_item_" + index;
            document.getElementById("cate_item_" + index).className = '';
        }
        function zzk() {
            var keywords = $("#keywords").val();
            $.ajax(
            {
                url: "~/search/search?keywords=" + keywords,
                success: function (data) {
                    alert(data);
                }
            }
            );
        }
    </script>
</head>
<body>
    @{PagedList<Models.BlogInfo> blogList = ViewBag.BlogList as PagedList<Models.BlogInfo>;}
    <div id="main">
        <div id="side_nav">
            @{Html.RenderAction("index", "category");}
                        <div class="l_s">
            </div>
            <p class="r_l_3">
            </p>
            <p class="r_l_2">
            </p>
            <p class="r_l_1">
            </p>
            @Html.Partial("~/views/homeSub/LeftLink.cshtml")
            <p class="r_l_1"></p>
<p class="r_l_2"></p>
<p class="r_l_3"></p>
<div class="l_s"></div>
            <div id="user_stats">
                     <p class="r_l_3"></p>
<p class="r_l_2"></p>
<p class="r_l_1"></p>
                @Html.Action("index", "BoWenZhuanJiaPaiHang")
            </div>
        </div>
        <div id="post_list" style="margin-top: 150px;">
            @{Html.RenderPartial("~/views/blog/index.cshtml", Model);}
        </div>
    </div>
    <div>
        @Html.BeginForm("search", "search", FormMethod.Post){
        @Html.TextBox("keywords")
        <input type="submit" value="找找看" />
        }
    </div>
</body>
</html>
